package com.kzx.blog.service.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.PositiveOrZero;

/**
 * @author kongz
 * @version 1.0 2021/12/14 9:56
 * @description 评论分类查询参数
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class CommentPagingParam extends PagingParam{

    /*
    博客id
     */
    @PositiveOrZero(message = "不合法的博客id传入")
    private int blogId;

    /*
    状态
     */
    @Range(min = -1, max = 3, message = "不合法的状态传入")
    private int status;
}
